/*    */ package com.zimbra.cs.account.soap;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.soap.AdminConstants;
/*    */ import com.zimbra.common.soap.Element;
/*    */ import com.zimbra.common.soap.Element.XMLElement;
/*    */ import com.zimbra.cs.account.Config;
/*    */ import com.zimbra.cs.account.Provisioning;
/*    */ import com.zimbra.soap.admin.message.GetAllConfigResponse;
/*    */ import com.zimbra.soap.admin.message.GetConfigResponse;
/*    */ import com.zimbra.soap.admin.type.Attr;
/*    */ import java.util.Map;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ class SoapConfig
/*    */   extends Config
/*    */   implements SoapEntry
/*    */ {
/*    */   SoapConfig(Map<String, Object> attrs, Provisioning provisioning)
/*    */   {
/* 35 */     super(attrs, provisioning);
/*    */   }
/*    */   
/*    */   SoapConfig(GetAllConfigResponse resp, Provisioning provisioning) throws ServiceException
/*    */   {
/* 40 */     super(Attr.collectionToMap(resp.getAttrs()), provisioning);
/*    */   }
/*    */   
/*    */   SoapConfig(GetConfigResponse resp, Provisioning provisioning) throws ServiceException
/*    */   {
/* 45 */     super(Attr.collectionToMap(resp.getAttrs()), provisioning);
/*    */   }
/*    */   
/*    */   SoapConfig(Element e, Provisioning provisioning) throws ServiceException {
/* 49 */     super(SoapProvisioning.getAttrs(e), provisioning);
/*    */   }
/*    */   
/*    */   public void modifyAttrs(SoapProvisioning prov, Map<String, ? extends Object> attrs, boolean checkImmutable) throws ServiceException {
/* 53 */     Element.XMLElement req = new Element.XMLElement(AdminConstants.MODIFY_CONFIG_REQUEST);
/* 54 */     SoapProvisioning.addAttrElements(req, attrs);
/* 55 */     setAttrs(SoapProvisioning.getAttrs(prov.invoke(req)));
/*    */   }
/*    */   
/*    */   public void reload(SoapProvisioning prov) throws ServiceException {
/* 59 */     Element.XMLElement req = new Element.XMLElement(AdminConstants.GET_ALL_CONFIG_REQUEST);
/* 60 */     setAttrs(SoapProvisioning.getAttrs(prov.invoke(req)));
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/account/soap/SoapConfig.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */